package sms

import (
	openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client"
	dysmsapi20170525 "github.com/alibabacloud-go/dysmsapi-20170525/v3/client"
	"github.com/alibabacloud-go/tea/tea"
)

var SmsClient *dysmsapi20170525.Client

const path = "dysmsapi.aliyuncs.com"

var accessKeyId = "LTAI5tFu62eXWp5btSzoEQse"

// 请填写您的AccessKeySecret。
var accessKeySecret = "V76X5KDgzOewOHljvzwUyeDt9UP8iU"

func Init() func() {

	config := &openapi.Config{
		// 必填，您的 AccessKey ID
		AccessKeyId: &accessKeyId,
		// 必填，您的 AccessKey Secret
		AccessKeySecret: &accessKeySecret,
	}
	// 访问的域名
	config.Endpoint = tea.String(path)
	client := &dysmsapi20170525.Client{}
	client, err := dysmsapi20170525.NewClient(config)

	if err != nil {

		panic(err)
	}
	SmsClient = client

	return func() {

	}
}
